
import java.util.Scanner;
public class zuoye2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入车型,夏利:1,富康:2,桑塔纳:3");
        int che = sc.nextInt();
        int xl = 1;
        int fk = 2;
        int stn = 3;
        System.out.println("请输入千米数:");
        Double mi = sc.nextDouble();
        double xl1 = (mi - 3) * 2.1 + 3;
        double fk2 = (mi - 3) * 2.4 + 4;
        double stn3 = (mi - 3) * 2.7 + 5;
        switch (che) {
            case 1:
                if (xl1 <= 3) {
                    System.out.println("车型:夏利,车费:3元");
                    break;
                } else if (xl1 > 3){
                    System.out.println("车型:夏利,车费:" + xl1 + "元");
                    break;
                }
            case 2:
                if(fk2 <= 3){
                    System.out.println("车型:富康,车费;4元，");
                    break;
                } else if(fk2 > 3){
                    System.out.println("车型:富康,车费:" + fk2);
                    break;
                }
            case 3:
                if(stn3 <= 3){
                    System.out.println("车型:富康,车费:5元，");
                    break;
                } else if(stn > 3){
                    System.out.println("车型:富康,车费:" + stn3 + "元");
                    break;
                }
        }

    }
}